<template>
  <div class="title">
    <p class="line"></p>
    <p class="name">{{ t }}</p>
    <slot></slot>
  </div>
</template>

<script>
export default {
    props:{
        subTitle:{
            type:String,
            default:""
        }
    },
    data(){
        return{
            t :""
        }
    },
    methods:{
        
    },
    mounted(){
        this.t = this._props.subTitle
       
    }
}
</script>

<style lang="scss" scoped>
.title {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(90deg, rgba(115, 255, 247, 0.3) 0%, rgba(115, 255, 247, 0) 100%);
    display: flex;
    align-items: center;
    padding: 8px 6px;
    position: relative;
    .line {
        width: 4px;
        height: 24px;
        background: #FBE749;
        margin-right: 10px;
    }
    .name {
      font-family: PangMenZhengDao;
      font-size: 20px;
      font-weight: normal;
      line-height: normal;
      display: flex;
      align-items: center;
      letter-spacing: 0.05em;
    }
}
</style>
